package imgshare.service;

import imgshare.model.Image;
import imgshare.model.vo.ImageCondition;
import imgshare.model.vo.ImageWithSimpleUserInfo;

import java.util.List;

public interface ImageService {
    List<Image> getAllImage();

    Image getImageById(int id);

    void update(Image image);

    int add(Image image);

    List<Image> findByCondition(ImageCondition condition);

    List<Image> findCollectedImages(Integer userId);

    List<Image> findMyFollowingUsersPostedImages(Integer userId);

    List<ImageWithSimpleUserInfo> findWithSimpleUserInfoByCondition(ImageCondition imageCondition);
}
